<div class="jobs view">
<h2><?php  __('Job');?></h2>

  <!-- Definition List of Job fields -->
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['Job']['id']; ?>
			&nbsp;
		</dd>
    
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['Job']['name']; ?>
			&nbsp;
		</dd>
    
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Alternate Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['JobAltName']['name']; ?>
			&nbsp;
		</dd>
    
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['Description']['content']; ?>
			&nbsp;
		</dd>
		
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Directory Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['Job']['dir_name']; ?>
			&nbsp;
		</dd>
		
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dir Abs Path'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['Job']['dir_abs_path']; ?>
			&nbsp;
		</dd>
		
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['Job']['created']; ?>
			&nbsp;
		</dd>
		
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $job['Job']['modified']; ?>
			&nbsp;
    </dd>
    
    <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tags'); ?></dt>
    <dd<?php if ($i++ % 2 == 0) echo $class;?>>   
      
      <?php if (!empty($job['Tag'])):?>
      <table cellpadding = "0" cellspacing = "0">
      <tr>
        <th><?php __('Name'); ?></th>
      </tr>
      <?php
        $i = 0;
        foreach ($job['Tag'] as $tag):
          $class = null;
          if ($i++ % 2 == 0) {
            $class = ' class="altrow"';
          }
        ?>
        <tr<?php echo $class;?>>
          <td><?php echo $tag['name'];?></td>
        </tr>
      <?php endforeach; ?>
      </table>
      <?php endif; ?>
      
    </dd>  
      
    
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Job', true), array('action' => 'edit', $job['Job']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Job', true), array('action' => 'delete', $job['Job']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $job['Job']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Jobs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Statuses', true), array('controller' => 'statuses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Status', true), array('controller' => 'statuses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Authors', true), array('controller' => 'authors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Author', true), array('controller' => 'authors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Job Types', true), array('controller' => 'job_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job Type', true), array('controller' => 'job_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Descriptions', true), array('controller' => 'descriptions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Description', true), array('controller' => 'descriptions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Job Alt Names', true), array('controller' => 'job_alt_names', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Job Alt Name', true), array('controller' => 'job_alt_names', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Param Fdks', true), array('controller' => 'param_fdks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Param Fdk', true), array('controller' => 'param_fdks', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Param Sirts', true), array('controller' => 'param_sirts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Param Sirt', true), array('controller' => 'param_sirts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cuda Jobs', true), array('controller' => 'cuda_jobs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cuda Job', true), array('controller' => 'cuda_jobs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tags', true), array('controller' => 'tags', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tag', true), array('controller' => 'tags', 'action' => 'add')); ?> </li>
	</ul>
</div>

<!--
<div class="related">
		<h3><?php __('Related Descriptions');?></h3>
    <?php if (!empty($job['Description'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
      <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $job['Description']['id'];?>   &nbsp;</dd>
      
      <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Job Id');?></dt>
      <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $job['Description']['job_id'];?>  &nbsp;</dd>
      
      <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Content');?></dt>
      <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $job['Description']['content'];?>    &nbsp;</dd>
      
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit Description', true), array('controller' => 'descriptions', 'action' => 'edit', $job['Description']['id'])); ?></li>
			</ul>
		</div>
</div>
<div class="related">
		<h3><?php __('Related Job Alt Names');?></h3>
    <?php if (!empty($job['JobAltName'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
      <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $job['JobAltName']['id'];?>
      &nbsp;</dd>
      <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Job Id');?></dt>
      <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $job['JobAltName']['job_id'];?>
      &nbsp;</dd>
      <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name');?></dt>
      <dd<?php if ($i++ % 2 == 0) echo $class;?>>
      <?php echo $job['JobAltName']['name'];?>
      &nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit Job Alt Name', true), array('controller' => 'job_alt_names', 'action' => 'edit', $job['JobAltName']['id'])); ?></li>
			</ul>
		</div>
</div>
		
<div class="related">
    <h3><?php __('Related Tags');?></h3>
    <?php if (!empty($job['Tag'])):?>
    <table cellpadding = "0" cellspacing = "0">
    <tr>
      <th><?php __('Id'); ?></th>
      <th><?php __('Name'); ?></th>
      <th class="actions"><?php __('Actions');?></th>
    </tr>
    <?php
      $i = 0;
      foreach ($job['Tag'] as $tag):
        $class = null;
        if ($i++ % 2 == 0) {
          $class = ' class="altrow"';
        }
      ?>
      <tr<?php echo $class;?>>
        <td><?php echo $tag['id'];?></td>
        <td><?php echo $tag['name'];?></td>
        <td class="actions">
          <?php echo $this->Html->link(__('View', true), array('controller' => 'tags', 'action' => 'view', $tag['id'])); ?>
          <?php echo $this->Html->link(__('Edit', true), array('controller' => 'tags', 'action' => 'edit', $tag['id'])); ?>
          <?php echo $this->Html->link(__('Delete', true), array('controller' => 'tags', 'action' => 'delete', $tag['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $tag['id'])); ?>
        </td>
      </tr>
    <?php endforeach; ?>
    </table>
  <?php endif; ?>

    <div class="actions">
      <ul>
        <li><?php echo $this->Html->link(__('New Tag', true), array('controller' => 'tags', 'action' => 'add'));?> </li>
      </ul>
    </div>
</div>
-->